import { request } from "@/utils/request.js";

export const publishAPI = (data) =>
  request.post('blog', data)

export const updatePostAPI = (data) =>
  request.put(`blog/${data.id}`, data)
